#ifndef MY_CLIENT_H
#define MY_CLIENT_H

#include <QMainWindow>
#include <QTcpSocket>
#include <QDebug>

QT_BEGIN_NAMESPACE
namespace Ui { class my_client; }
QT_END_NAMESPACE

class my_client : public QMainWindow
{
    Q_OBJECT

public:
    my_client(QWidget *parent = nullptr);
    ~my_client();

private slots:
    void connect_success();
    void receive_data();

private:
    Ui::my_client *ui;
    QTcpSocket *myclient;

};
#endif // MY_CLIENT_H
